package com.ms.p2p.provider;


import com.ms.p2p.entity.loan.LoanCategory;

import java.util.List;

/**
 *  项目类型
 */
public interface LoanCategoryProvider {



	/**
	 * 增
	 * 
	 * @param loanCategory
	 * @return 插入主键
	 */

	public int insert(LoanCategory loanCategory);

	/**
	 * 删
	 * @param int 主键
	 * @return int
	 */
	public int delete(int id) ;

	/**
	 * 改
	 * 
	 * @param loanCategory
	 * @return 受影响行数
	 */
	public int update(LoanCategory loanCategory);

	/**
	 * 根据ID查
	 * 
	 * @return LoanCategory
	 */
	public LoanCategory findById(String id) ;

	/**
	 * 查所有
	 * 
	 * @return java.util.List<LoanCategory></>
	 */

	public List<LoanCategory> findAll();

}
